class CreateEvents < ActiveRecord::Migration
  def self.up
    create_table :events do |t|
      t.string 		:name
      t.datetime    :eventstart
      t.datetime 	:eventfinish
      t.datetime 	:betstart
      t.datetime	:betfinish
      t.string 		:description
      t.integer 	:topbetevent
      t.integer 	:topbetuser
	  t.integer 	:category_idf
	  

      t.timestamps
    end
  end

  def self.down
    drop_table :events
  end
end